package com.lyf.service;

import java.util.List;

import com.lyf.dao.FolderDao;
import com.lyf.pojo.Folder;

public class FolderService {

	private FolderDao dao;

	
	//set,
	public void setDao(FolderDao dao) {
		this.dao = dao;
	}


	public void save(Folder folder) {
		dao.saveOrUpdate(folder);
	}
	
	public List<Folder> findByProjectId(String id){
		return dao.findByHql(id);
	}
	
	public Folder findByFolderId(String id){
		return dao.get(id);
	}


	public void delete(String id) {
		dao.delete(id);
	}
	
}
